/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entity;

import java.io.Serializable;
import javax.persistence.Entity;

/**
 *
 * @author Lu Xiaodi
 */
@Entity
public class PurchasedItem_GroupOn extends PurchasedItem implements Serializable {
    private static final long serialVersionUID = 1L;
    private String creditCard;
    private Long customerId;
    private Integer qty;

    public String getCreditCard() {
        return creditCard;
    }
 
    public void setCreditCard(String creditCard) {
        this.creditCard = creditCard;
    }

    public Long getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Long customerId) {
        this.customerId = customerId;
    }

    public Integer getQty() {
        return qty;
    }

    public void setQty(Integer qty) {
        this.qty = qty;
    }
    
    public void addQty(Integer qty){
        this.qty += qty;
    }
}
